package com.model.dao;

// Generated Dec 12, 2013 5:03:37 PM by Hibernate Tools 4.0.0

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;


/**
 * GooglemapsTable generated by hbm2java
 */
@Entity
@Table(name = "googlemaps_table", catalog = "shoppingcart_schema")
public class GooglemapsTable implements java.io.Serializable {

	private Integer idgooglemapsTable;
	private UserTable userTable;
	private String lat;
	private String lang;

	public GooglemapsTable() {
	}

	public GooglemapsTable(UserTable userTable, String lat, String lang) {
		this.userTable = userTable;
		this.lat = lat;
		this.lang = lang;
	}

	@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "userTable"))
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "idgooglemaps_table", unique = true, nullable = false)
	public Integer getIdgooglemapsTable() {
		return this.idgooglemapsTable;
	}

	public void setIdgooglemapsTable(Integer idgooglemapsTable) {
		this.idgooglemapsTable = idgooglemapsTable;
	}

	@OneToOne(fetch = FetchType.LAZY)
	@PrimaryKeyJoinColumn
	public UserTable getUserTable() {
		return this.userTable;
	}

	public void setUserTable(UserTable userTable) {
		this.userTable = userTable;
	}

	@Column(name = "lat", nullable = false, length = 45)
	public String getLat() {
		return this.lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	@Column(name = "lang", nullable = false, length = 45)
	public String getLang() {
		return this.lang;
	}

	public void setLang(String lang) {
		this.lang = lang;
	}

}
